package com.baizhi.controller;

import com.baizhi.service.BookService;
import com.baizhi.service2.BookService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class BookController {
    @Autowired
    private BookService bs;

    @Autowired
    private BookService2 bs2;

    @RequestMapping("fy")
    @ResponseBody
    public Map fy(int page, int rows){

        return bs.fy(page,rows);
    }


}
